c_ = sparse(50,1);
c_(1) = 1;
b_ = sparse(42,1);
b_(5:5) = d;
b_(11:11) = e;
b_(15:15) = -0.5;
b_(16:16) = -0.5;
b_(21:21) = b1;
b_(22:22) = -0.5;
b_(23:23) = -0.5;
b_(28:28) = b2;
b_(29:29) = -0.5;
b_(30:30) = -0.5;
b_(35:35) = b3;
b_(36:36) = -0.5;
b_(37:37) = -0.5;
b_(42:42) = b4;
A_ = sparse(42, 50);
A_(1:1, 21:21) = 1.0; A_(1:1, 22:22) = -1.0;
A_(2:2, 23:23) = 1.0; A_(2:2, 24:24) = 1.0; A_(2:2, 21:21) = -1.0;
A_(3:3, 6:6) = c11; A_(3:3, 23:23) = -1.0;
A_(4:4, 8:8) = c12; A_(4:4, 24:24) = -1.0;
A_(5:5, 22:22) = 1.0;
A_(6:6, 25:25) = 1.0; A_(6:6, 2:2) = 1.0; A_(6:6, 26:26) = -1.0;
A_(7:8, 25:25) = 1.0*ones(2, 1); A_(7:8, 27:28) = -1.0*speye(2, 2); A_(7:8, 3:4) = -1.0*speye(2, 2);
A_(9:10, 27:28) = -1.0*speye(2, 2); A_(9:9, 5:5) = 1.0; A_(10:10, 7:7) = 1.0;
A_(11:11, 26:26) = 1.0;
A_(12:12, 29:29) = 1.0; A_(12:12, 30:30) = 1.0; A_(12:12, 1:1) = -1.0;
A_(13:13, 31:31) = 1.0; A_(13:13, 32:32) = 1.0; A_(13:13, 29:29) = -1.0;
A_(14:14, 33:33) = 1.0; A_(14:14, 34:34) = 1.0; A_(14:14, 31:31) = -1.0;
A_(15:15, 33:33) = 0.5; A_(15:15, 9:9) = -1.0;
A_(16:16, 33:33) = -0.5; A_(16:16, 10:10) = -1.0;
A_(17:17, 35:35) = 1.0; A_(17:17, 36:36) = -1.0; A_(17:17, 11:11) = -1.0;
A_(18:18, 37:37) = 1.0; A_(18:18, 38:38) = 1.0; A_(18:18, 35:35) = -1.0;
A_(19:19, 6:6) = a11; A_(19:19, 37:37) = -1.0;
A_(20:20, 8:8) = a12; A_(20:20, 38:38) = -1.0;
A_(21:21, 36:36) = 1.0;
A_(22:22, 34:34) = 0.5; A_(22:22, 12:12) = -1.0;
A_(23:23, 34:34) = -0.5; A_(23:23, 13:13) = -1.0;
A_(24:24, 39:39) = 1.0; A_(24:24, 40:40) = -1.0; A_(24:24, 14:14) = -1.0;
A_(25:25, 41:41) = 1.0; A_(25:25, 42:42) = 1.0; A_(25:25, 39:39) = -1.0;
A_(26:26, 6:6) = a21; A_(26:26, 41:41) = -1.0;
A_(27:27, 8:8) = a22; A_(27:27, 42:42) = -1.0;
A_(28:28, 40:40) = 1.0;
A_(29:29, 32:32) = 0.5; A_(29:29, 15:15) = -1.0;
A_(30:30, 32:32) = -0.5; A_(30:30, 16:16) = -1.0;
A_(31:31, 43:43) = 1.0; A_(31:31, 44:44) = -1.0; A_(31:31, 17:17) = -1.0;
A_(32:32, 45:45) = 1.0; A_(32:32, 46:46) = 1.0; A_(32:32, 43:43) = -1.0;
A_(33:33, 6:6) = a31; A_(33:33, 45:45) = -1.0;
A_(34:34, 8:8) = a32; A_(34:34, 46:46) = -1.0;
A_(35:35, 44:44) = 1.0;
A_(36:36, 30:30) = 0.5; A_(36:36, 18:18) = -1.0;
A_(37:37, 30:30) = -0.5; A_(37:37, 19:19) = -1.0;
A_(38:38, 47:47) = 1.0; A_(38:38, 48:48) = -1.0; A_(38:38, 20:20) = -1.0;
A_(39:39, 49:49) = 1.0; A_(39:39, 50:50) = 1.0; A_(39:39, 47:47) = -1.0;
A_(40:40, 6:6) = a41; A_(40:40, 49:49) = -1.0;
A_(41:41, 8:8) = a42; A_(41:41, 50:50) = -1.0;
A_(42:42, 48:48) = 1.0;
G_ = sparse(19, 50);
G_(1:1:1, 2:2) = -speye(1, 1);
G_(2:1:3, 3:4) = -speye(2, 2);
G_(4:1:4, 5:5) = -speye(1, 1);
G_(5:1:5, 6:6) = -speye(1, 1);
G_(6:1:6, 7:7) = -speye(1, 1);
G_(7:1:7, 8:8) = -speye(1, 1);
G_(8:1:8, 9:9) = -speye(1, 1);
G_(9:1:9, 10:10) = -speye(1, 1);
G_(10:1:10, 11:11) = -speye(1, 1);
G_(11:1:11, 12:12) = -speye(1, 1);
G_(12:1:12, 13:13) = -speye(1, 1);
G_(13:1:13, 14:14) = -speye(1, 1);
G_(14:1:14, 15:15) = -speye(1, 1);
G_(15:1:15, 16:16) = -speye(1, 1);
G_(16:1:16, 17:17) = -speye(1, 1);
G_(17:1:17, 18:18) = -speye(1, 1);
G_(18:1:18, 19:19) = -speye(1, 1);
G_(19:1:19, 20:20) = -speye(1, 1);
h_ = zeros(19, 1);
dims.q = [2,2,3,3,3,3];
dims.l = 3;
[x_codegen, y_, info_] = conelp(full(c_), G_, h_, dims, A_, full(b_));
t17 = x_codegen(1:1);
t31 = x_codegen(2:2);
t30z0 = x_codegen(3:4);
t27 = x_codegen(5:5);
x1 = x_codegen(6:6);
t28 = x_codegen(7:7);
x2 = x_codegen(8:8);
t4z0 = x_codegen(9:9);
t4z1 = x_codegen(10:10);
t3 = x_codegen(11:11);
t10z0 = x_codegen(12:12);
t10z1 = x_codegen(13:13);
t9 = x_codegen(14:14);
t16z0 = x_codegen(15:15);
t16z1 = x_codegen(16:16);
t15 = x_codegen(17:17);
t22z0 = x_codegen(18:18);
t22z1 = x_codegen(19:19);
t21 = x_codegen(20:20);
t24 = x_codegen(21:21);
pd = x_codegen(22:22);
t23 = x_codegen(23:23);
t25 = x_codegen(24:24);
t30 = x_codegen(25:25);
pe = x_codegen(26:26);
t29 = x_codegen(27:28);
t11 = x_codegen(29:29);
t22 = x_codegen(30:30);
t5 = x_codegen(31:31);
t16 = x_codegen(32:32);
t4 = x_codegen(33:33);
t10 = x_codegen(34:34);
t1 = x_codegen(35:35);
pb1 = x_codegen(36:36);
t0 = x_codegen(37:37);
t2 = x_codegen(38:38);
t7 = x_codegen(39:39);
pb2 = x_codegen(40:40);
t6 = x_codegen(41:41);
t8 = x_codegen(42:42);
t13 = x_codegen(43:43);
pb3 = x_codegen(44:44);
t12 = x_codegen(45:45);
t14 = x_codegen(46:46);
t19 = x_codegen(47:47);
pb4 = x_codegen(48:48);
t18 = x_codegen(49:49);
t20 = x_codegen(50:50);
ecos_optval = 1*info_.pcost;
